package com.wbs.api;

import com.wbs.vo.CartVO;
import org.bouncycastle.pqc.crypto.newhope.NHOtherInfoGenerator;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @Author: 芝梦
 * @Description: 购物车远程控制API
 * @DateTime: 2024/2/27 17:49
 */
@FeignClient("dongdong-cart-service")
public interface CartAPI {
    //查询购物车List<CartVO>
    @GetMapping("/cart/getCatList")
    public List<CartVO> getCatList(@RequestHeader String token);

    @DeleteMapping("/cart/clearCatList")
    public void clearCatList(@RequestParam String id);
}
